package com.zhuoyue.system.domain.dto;

import com.zhuoyue.system.domain.TblDeviceActions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wjming
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseDeviceMessage {
    private String deviceName;
    private String deviceType;
    private String defaultDeviceName;
    private String deviceMac;
    private List<TblDeviceActions> actions;
    /**
     * 以下是场景中用到
     */

    private String actions2;
    private String stateDes;

    public BaseDeviceMessage(String deviceName, String deviceType, String deviceMac) {
        this.deviceName = deviceName;
        this.deviceType = deviceType;
        this.deviceMac = deviceMac;
    }

    public BaseDeviceMessage(String deviceName, String deviceType, String defaultDeviceName, String deviceMac) {
        this.deviceName = deviceName;
        this.deviceType = deviceType;
        this.defaultDeviceName = defaultDeviceName;
        this.deviceMac = deviceMac;
    }

    public BaseDeviceMessage(String deviceName, String deviceType, String deviceMac, String actions2, String stateDes) {
        this.deviceName = deviceName;
        this.deviceType = deviceType;
        this.deviceMac = deviceMac;
        this.actions2 = actions2;
        this.stateDes = stateDes;
    }
}
